package com.daniel.cloud.mapper;

import com.daniel.cloud.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    User findById(@Param("id") Long id);

    /**
     * 查询所有用户
     * @return
     */
    List<User> findAll();
}